home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000094_owner-ade-gcc_Mon Feb 19 09:07:06 1996.msg < prev    next >
Internet Message Format  |  1996-02-28  |  3KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0toWEg-000gXXa; Mon, 19 Feb 96 09:06 EST
  4. Sender: owner-ade-gcc
  5. Received: from nis.student.dtu.dk by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0toWEM-000gXUC; Mon, 19 Feb 96 09:06 EST
  7. Received: from mona.mbar.dtu.dk (mona.mbar.dtu.dk [130.225.72.18]) by nis.student.dtu.dk (8.7.3/8.7.3) with ESMTP id PAA27712; Mon, 19 Feb 1996 15:02:23 +0100 (MET)
  8. Received: (from c948374@localhost) by mona.mbar.dtu.dk (8.7.3/8.7.3) id PAA04766; Mon, 19 Feb 1996 15:02:25 +0100 (MET)
  9. Date: Mon, 19 Feb 1996 15:02:24 +0100 (MET)
  10. From: Rask Ingemann Lambertsen <c948374@student.dtu.dk>
  11. To: Alfred Minarik <am@mdy.univie.ac.at>
  12. cc: amiga-gcc-port@nic.funet.fi, ADE GCC List <ade-gcc@ninemoons.com>
  13. Subject: Re: Passing arguments in registers and stack checking/extension
  14. In-Reply-To: <31286777.40D7@mdy.univie.ac.at>
  15. Message-ID: <Pine.HPP.3.91.960219145604.4744A-100000@mona.mbar.dtu.dk>
  16. MIME-Version: 1.0
  17. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  18. Content-Transfer-Encoding: quoted-printable
  19. Sender: owner-ade-gcc@ninemoons.com
  20. Precedence: bulk
  21.  
  22. On Mon, 19 Feb 1996, Alfred Minarik wrote:
  23. [Kamil Iskra (?) wrote:]
  24. > > You are right. Actually, I'm not aware of any other solution of passi=
  25. ng
  26. > > arguments than on stack or registers (or in static storage - but this=
  27.  is
  28. > > complete braindamage) - since none of these seems reasonable, I guess=
  29.  we
  30. > > will have to drop support for register parameters used together with =
  31. stack
  32. > > checking/extension...
  33. >=20
  34. > To me there seems to be a solution of passing both in registers.
  35. > As the common sense seems to settle on passing register arguments in
  36. > d0,d1,a0,a1,
  37. > you could use d2,(+a2) for the time critical stack checking/extension
  38. > functions,
  39. > which should not need other registers then d2,(+a2).
  40. > Without stack-checking d2,a2 would be free for other needs.
  41.  
  42. I suggest using d4,a4 instead, as this leaves more registers for those=20
  43. who want arguments passed in registers. a4 can be used, because -fbaserel=
  44. =20
  45. doesn't work with stackextension, right?
  46. This would leave 8 registers available for passing arguments, which=20
  47. really should be enough for most people, and it is certanly better than=20
  48. only 4. Any objections against that?
  49.  
  50. Regards,
  51.  
  52. /=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
  53. =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=
  54. =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF\
  55. | Rask Ingemann Lambertsen       | E-mail: c948374@student.dtu.dk        =
  56. |
  57. | Amiga GNU CC README maintainer | WWW: http://www.gbar.dtu.dk/~c948374/ =
  58. |
  59. | Keyboard error: <Ctrl> and <Alt> are stuck - press <Del> to continue   =
  60. |